package curd

var CurdTpl = `
package router

import (
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
 	r := gin.Default()
	
	g := r.Group("{{.Resource}}")
	{
		g.GET("/list", controller.List{{.Resource}})
		g.POST("/create", controller.Create{{.Resource}})
		g.GET("/detail/:id", controller.Detail{{.Resource}})
		g.POST("/update/:id", controller.Update{{.Resource}})
		g.POST("/del/:id", controller.Delete{{.Resource}})
	}

    return r
}
`
